import request from '@/utils/request'

// 查询保密等级变更记录列表
export function listLevel(query) {
	return request({
		url: '/spm/level/list',
		method: 'get',
		params: query
	})
}

// 查询保密等级变更记录详细
export function getLevel(levelId) {
	return request({
		url: '/spm/level/' + levelId,
		method: 'get'
	})
}

// 新增保密等级变更记录
export function addLevel(data) {
	return request({
		url: '/spm/level',
		method: 'post',
		data: data
	})
}

// 修改保密等级变更记录
export function updateLevel(data) {
	return request({
		url: '/spm/level',
		method: 'put',
		data: data
	})
}

// 删除保密等级变更记录
export function delLevel(levelId) {
	return request({
		url: '/spm/level/' + levelId,
		method: 'delete'
	})
}